/*
 *  Copyright 2024 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

@import (reference) '../../../../styles/variables.less';

.filter-selection-container {
  display: flex;
  align-items: center;
  width: 100%;
}

.filter-selection-chips-wrapper {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.filter-selection-chip {
  display: flex;
  padding: 8px 14px;
  align-items: center;
  gap: 2px;
  border-radius: 5px;
  background-color: @primary-50; // #EFF8FF
}

.filter-selection-chip-content {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.filter-selection-label {
  color: @grey-600;
  font-family: @font-family;
  font-size: 14px;
  font-weight: @font-medium;
  line-height: 20px;
}

.filter-selection-value {
  color: @primary-6;
  font-family: @font-family;
  font-size: @font-size-base;
  font-weight: @font-medium;
  line-height: 20px;
  max-width: 350px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

.filter-selection-remove-btn {
  margin-left: 8px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: @grey-600;

  &:hover {
    opacity: 0.7;
  }
}

.filter-selection-clear-all {
  color: @primary-6 !important;
  font-size: 14px;
  font-weight: @font-medium;
  padding: 0;

  &:hover {
    text-decoration: underline;
  }
}
